﻿<UserControl x:Class="WPFGame.Controls.Hero"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Canvas x:Name="HeroCanvas">
        <Grid>
        <StackPanel Width="150">
            <!--血条-->
            <Border x:Name="LifeBorder" Visibility="Collapsed" BorderBrush="Black" BorderThickness="0.6" CornerRadius="2" HorizontalAlignment="Center">
                <Rectangle x:Name="Life" Width="100" Height="8" Fill="Red" RadiusX="2" RadiusY="2"  HorizontalAlignment="Center"></Rectangle>
            </Border>
        </StackPanel>
        <Image x:Name="Body" Width="150" Height="150"/>
        <StackPanel Orientation="Vertical" Width="150" Margin="0,0,0,20" VerticalAlignment="Bottom">
            <!--称谓-->
                <Border HorizontalAlignment="Center" Background="Black" Opacity="0.75">
                    <TextBlock x:Name="Title" FontSize="13" FontWeight="Bold" Text="无量天尊" Foreground="Blue" Opacity="0.7" HorizontalAlignment="Center"/>
                </Border>
                <!--角色名称-->
                <Border  HorizontalAlignment="Center" Background="Black" Opacity="0.75">
                    <TextBlock x:Name="HeroName" FontSize="13" FontWeight="Bold" Text="江一刀" Foreground="DarkGreen" HorizontalAlignment="Center"/>
                </Border>
            </StackPanel>
        </Grid>
    </Canvas> 
</UserControl>
